package org.qu.vo;

/**
 * IsnsIntegralId entity. @author MyEclipse Persistence Tools
 */

public class IsnsIntegralId implements java.io.Serializable {

	// Fields

	private String operation;
	private Short integral;

	// Constructors

	/** default constructor */
	public IsnsIntegralId() {
	}

	/** full constructor */
	public IsnsIntegralId(String operation, Short integral) {
		this.operation = operation;
		this.integral = integral;
	}

	// Property accessors

	public String getOperation() {
		return this.operation;
	}

	public void setOperation(String operation) {
		this.operation = operation;
	}

	public Short getIntegral() {
		return this.integral;
	}

	public void setIntegral(Short integral) {
		this.integral = integral;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof IsnsIntegralId))
			return false;
		IsnsIntegralId castOther = (IsnsIntegralId) other;

		return ((this.getOperation() == castOther.getOperation()) || (this
				.getOperation() != null
				&& castOther.getOperation() != null && this.getOperation()
				.equals(castOther.getOperation())))
				&& ((this.getIntegral() == castOther.getIntegral()) || (this
						.getIntegral() != null
						&& castOther.getIntegral() != null && this
						.getIntegral().equals(castOther.getIntegral())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getOperation() == null ? 0 : this.getOperation().hashCode());
		result = 37 * result
				+ (getIntegral() == null ? 0 : this.getIntegral().hashCode());
		return result;
	}

}